package com.swu.pad.assignment.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Type;
import org.hibernate.type.LongType;

@Entity
@Table(name = "assignmentpad")
public class AssignmentPad {
	@Id
	@Column(name = "id")
	// padID
	private String id;
	@Column(name = "create_time")
	private Date createTime;
	// 作业ID
	@Column(name = "assignment_id")
	private String assignmentId;
	// 作业名称
	@Column(name = "assignment_name")
	private String assignmentName;
	// 组ID
	@Column(name = "group_id")
	private String groupId;
	// 组名
	@Column(name = "group_name")
	private String groupName;
	// 组名
	@Column(name = "asPadcontents")
	@Type(type = "text")
	private String asPadContents;
    
	public String getAsPadContents() {
		return asPadContents;
	}

	public void setAsPadContents(String asPadContents) {
		this.asPadContents = asPadContents;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getAssignmentId() {
		return assignmentId;
	}

	public void setAssignmentId(String assignmentId) {
		this.assignmentId = assignmentId;
	}

	public String getAssignmentName() {
		return assignmentName;
	}

	public void setAssignmentName(String assignmentName) {
		this.assignmentName = assignmentName;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	@Override
	public String toString() {
		return "AssignmentPad [id=" + id + ", createTime=" + createTime + ", assignmentId=" + assignmentId
				+ ", assignmentName=" + assignmentName + ", groupId=" + groupId + ", groupName=" + groupName
				+ ", asPadContents=" + asPadContents + "]";
	}

	
	
}
